<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
 <h:head>
<link rel="Stylesheet" href="../resources/stylesheet/uistyle.css"></link>
</h:head>
      <table><tr><td class="lbl wid1_5">#{msgs.uiemailprompt}</td> 
    <td class="wid4_5"><h:inputText  id="email" type="text" required="true" requiredMessage="#{msgs.reqfldntprvd}" validatorMessage="#{msgs.invmail}" value="#{regbean.emailId}">
    	<f:validateRegex pattern="\b[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}\b"></f:validateRegex>
    </h:inputText></td>
    <td><h:message for="email"/></td>
    </tr>
    <tr><td class="lbl wid1_5">Password</td>
      <td class="wid4_5"><h:inputSecret  id="pwd" type="text" required="true" requiredMessage="#{msgs.reqfldntprvd}" value="#{regbean.password}"/></td>
      <td><h:message for="pwd"/></td>
    </tr>  
    <tr><td></td>
    <td align="right">
    <h:commandButton action="SignIn" value="Sign In">
    </h:commandButton>
    </td><td></td></tr> 
    <tr>
    
   </tr>    
    </table>  
    <input type="button" value="Login with Facebook"  onclick="window.location='https://www.facebook.com/dialog/oauth?client_id=165082900264810&amp;redirect_uri=http%3A%2F%2Flocalhost%3A8080%2FServiceBuck%2Fpages%2Findex.jsf'">
        
       </input>
     
</html>